/**
 * \class xCoord
 * \brief This is an export class for Coord in order to support various programming languages.
 * \version 0.1
 *
 * \author Woo-Hyun Kim (woorung@nhncorp.com, woorung@gmail.com)
 * \author http://blog.naver.com/wisereign .
 *
 * \date 2008/11/07
 */
#ifdef SWIG
%module xcoord
%{
#include "xCoord.h"

using namespace std;
%}
#endif
//-----------------------------------------------------------------
#ifndef XCoordH
#define XCoordH
//-----------------------------------------------------------------
#include "discovery/Coord.h"

using namespace std;
//-----------------------------------------------------------------
class xCoord
{
private:
	Coord *coord;

	pair<string,string> keyval;

protected:
	
public:
	xCoord(char *name);
	virtual ~xCoord();

	long size();
	void autoclean(bool is_clean);

	int write(char *key, char *value);
	char *read(char *key);
	char *readIfExists(char *key);
	char *take(char *key);
	char *takeIfExists(char *key);
};
//-----------------------------------------------------------------
#endif
